package com.blame.onlinemusicserver.tools;


import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class RequestRegister {

    @Size(min = 3, max = 20, message = "用户名长度应在3到20个字符之间")
    @NotBlank(message = "username不能为空")
    private String username;

    @NotBlank(message = "password不能为空")
    private String password;


    @Email(message = "邮箱格式不正确")
    @NotBlank(message = "email不能为空")
    private String email;
}
